package models

import "gorm.io/gorm"

type ShopRealName struct {
	gorm.Model
	ShopId   int64  `gorm:"type:varchar(10);;comment:'店铺ID'"`
	RealName string `gorm:"type:varchar(10);;comment:'真实姓名'"`
	IdCard   string `gorm:"type:varchar(18);unique;comment:'身份证号码'"`
	Images   string `gorm:"type:varchar(255);unique;comment:'营业执照'"`
	Status   int64  `gorm:"type:int;default:1;comment: 默认1为正常 2为异常"`
}

func (r *ShopRealName) CreateREalName() error {
	return DB.Create(&r).Error
}
